<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/taglibs.jsp" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>
<script type="text/javascript" src="${ctx}/core/scripts/cal.js"></script>
<script language="javascript">
/*   function selectAllBox(){
    var pids  = document.getElementsByName('ids');
    for (var i=0;i<pids.length;i++)
      {
         if(!pids[i].disabled){
             pids[i].checked = document.getElementById("selectAll").checked;
         }
       }
  }
  
  function doDeleteMult(){
      var isSelect =false;
      
	  var pids  = document.getElementsByName('ids');
	  for (var i=0;i<pids.length;i++)
	  {
	     if(pids[i].checked){
		     isSelect=true;
		     break;
	     }
	  }
      if(isSelect){
         if (confirm('确定要删除所选记录！')){
		      var form = document.getElementById('mainForm');
		      document.getElementById('act').value='batchDelete';
		      form.action = 'informationManage.action';
		      form.submit();
			  return true;
         }
      }else{
         alert('<s:text name="prompt.system.delete.select"/>');
      }

  } */
  

  
/*    function sort(_fieldName){
   		var fieldName = document.mainForm.sortField.value;
   		var sortMode='<s:property value="sortMode"/>';
   		if(_fieldName==fieldName){
	   		if('asc'=='<s:property value="sortMode"/>'){
	   		   document.mainForm.sortMode.value='desc';
	   		}
	   		if('desc'=='<s:property value="sortMode"/>'){
	   		   document.mainForm.sortMode.value='asc';
	   		}
   		}else{
   		    document.mainForm.sortField.value=_fieldName;
   		    document.mainForm.sortMode.value='asc';
   		}
   		document.mainForm.submit();
   } */
  function doEdit(id,operatId){
    document.location.href="${ctx}/platformManage/orderManage.action?act=editInput&id="+id+"&operateId="+operatId;
  }

/*   function doView(id){
	    document.location.href="${ctx}/platformManage/orderManage.action?act=editInput&id="+id;
	  }
  
  function doDelete(id) {
		if(confirm("<s:text name='message.delete.confirm'/>")) {
			location.href="${ctx}/platformManage/informationManage.action?act=delete&id="+id;
		} 
  }	*/	
</script>
<body style="overflow-x:hidden;overflow-y:auto;">
<div id="mytest3"></div>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%@include file="/WEB-INF/core/common/message.jsp"  %>
  <tr><td><table border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;新订单</td>
    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    </table>
    </td>
  </tr>
  
  <tr>
    <td colspan="3" class="biaoge">	
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <form name="mainForm" method="post" action="${ctx}/platformManage/historyOrder.action">  
	  <tr>
        <td height="15"></td>
      </tr> 
    
	  <tr>
		<!-- 查询条件 -->
	    <td class="tabulation" colspan="3"><div style="position:relative">

	  </tr>
	  <tr>
	    <td height="5"></td>
	  </tr>
	  <tr>
	    <td height="10" background="${ctx}/core/images/line5.gif"></td>
	    </tr>
	  <tr>
	    <td height="5"></td>
	  </tr>
	</table>
	
      <div id="mytest">
      <table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">        
        <tr bgcolor="#C7D6EA">
          		  <td  width="2%" height="20" align="center" class="table_head">               
           			<input type="checkbox" name="selectAll" value="checkbox" onClick="selectAllBox()" >           	  
           		  </td>
		          <td width="8%" align="center" class="table_head" >订单ID</td>
		          <td width="15%" align="center" class="table_head" >详情</td>
		          <td width="8%" align="center" class="table_head" >数量(间)</td>
		          <td width="10%" align="center" class="table_head" >使用日期</td>
		          <td width="10%" align="center" class="table_head">使用时段</td>		          
		          <td width="8%" align="center" class="table_head">总价(元)</td>
		          <td width="12%" align="center" class="table_head">下单时间</td><!--
		          <td width="10%" align="center" class="table_head">联系号码</td>
		          --><td width="8%" align="center" class="table_head">状态</td>
		          <td width="8%" align="center" class="table_head"><s:text name="info.operate" /></td>
          
        </tr>
 		
 		<s:iterator value="pageInfo.searchResult" id="it" status="st">
	        <tr>
				<td align="center"> 
				    <input type="checkbox" name="ids" value="<exts:property value="0"/>"/>
				</td>
				<td align="center"><exts:property value="0"/></td>
				<td align="center"><exts:property value="4"/></td>
				<td align="center"><exts:property value="5"/></td>
				<td align="center"><exts:property value="10"/></td>
				<td align="center"><exts:select name="q_" value="%{#it[9]}" pageState="view" exclude="0" code="TIME_SEGMENT" ></exts:select></td>
				<td align="center"><exts:property value="6"/></td>
				<td align="center"><exts:property value="12"/></td>
				<!--<td align="center"><exts:property value="8"/></td>
				--><td align="center"><exts:select name="q_" value="%{#it[13]}" pageState="view" exclude="0" code="ORDER_STATUS" ></exts:select></td>
	         	<td align="center">
	          	<table height="16" border="0" cellpadding="0" cellspacing="0">
	                <tr>
	                	<!--<td width="25" align="right"><a href="javascript:doView(<exts:property value='0'/>);"><img src="${ctx}/core/images/up_icon.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="发布"/></a></td>
	                	--><td width="25" align="right"><a href="javascript:doEdit(<exts:property value='0'/>,1);"><img src="${ctx}/core/images/view.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="分配房间"/></a></td>
		                <td width="25" align="right"><a href="javascript:doEdit('<exts:property value='0'/>',2)"><img src="${ctx}/core/images/edit.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="拒绝"/></a></td>
		                <!--<td width="25" align="right"><a href="javascript:doDelete('<exts:property value='0'/>')"><img src="${ctx}/core/images/del.gif" name="icon_074" width="16" height="16" border="0" id="icon_074" style="CURSOR: hand" title="<s:text name='button.delete' />"/></a></td>
	                --></tr>
	          	</table>
	          	</td>
	        </tr>
	    </s:iterator>
	     </form>
      </table>
      </div>
	

      <!-- 分页 -->	  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr><td>${pagination}</td></tr>
          </table>
          
      <!-- 分页结束 -->	
    </td></tr></table>
</body>

<script>
	tables('content',null);
</script>